* src/terminal.c (delete_terminal): Block input while we modify
the frame list and 'terminal_list'. (Bug#71289)
#include "character.h"
#include "frame.h"
#include "termchar.h"
+#include "blockinput.h"
#include "termhooks.h"
#include "keyboard.h"
delete_terminal_hook when we delete our last frame. */
if (!terminal->name)
return;
+
+ /* Protection while we are in inconsistent state. */
+ block_input ();
xfree (terminal->name);
terminal->name = NULL;
}
delete_terminal_internal (terminal);
+ unblock_input ();
}
void